import request from '@/utils/request'

// 列表
export function getListData(query) {
    return request({
        url: '/api/label/list',
        method: 'get',
        params: query
    })
}

// 新增
export function addLabelData(data) {
    return request({
        url: '/api/label/add',
        method: 'post',
        params: data
    })
}

// 修改
export function editInfo(data) {
    return request({
        url: '/api/label/modify',
        method: 'post',
        params: data
    })
}

// 查看
export function getInfor(id) {
    return request({
        url: '/api/label/see',
        method: 'get',
        params: { id: id }
    })
}
export function train() {
    return request({
        url: '/api/service/train',
        method: 'post',
    })
}
export function trainStatus() {
    return request({
        url: '/api/service/trainStatus',
        method: 'get'
    })
}
// 删除
export function deleData(id) {
    return request({
        url: '/api/label/delete',
        method: 'post',
        params: { id: id }
    })
}